var app = getApp();

Page({
    data: {
        shopPoint:[]
    },
    onLoad: function(n) {
        this.getUsertx();
    },
     getUsertx: function() {
        var t = this;
        app.util.request({
            url: "entry/wxapp/Usertx",
            data: {
                openid: wx.getStorageSync("openid")
            },
            success: function(o) {
                console.log(o), o.data.data.u_money || (o.data.data.u_money = 0), o.data.data.shouyimoney || (o.data.data.shouyimoney = 0), 
                t.setData({
                    shopPoint: o.data.data
                });
            }
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});